{if isset($pager)}
<p>Displaying <span class="perpage">{if $pager->getNum()>=$pager->getTotal()}{$pager->getTotal()}{elseif !$pager->getNum()}{$pager->getTotal()}{else}{$pager->getNum()}{/if}</span> of <span class="totalpages">{$pager->getTotal()}</span> Results</p>
{if $pager->getPages() > 1}
<div class="searchpages">
	<ul class="pages">
	  {if $pager->getPage() > 1}
      <li><a href="#" page="{$pager->prev()}">Previous</a></li>
    {/if}

  	{foreach $pager->getPagesArray(10) as $val}
  	  {if $pager->getPage() == $val}
        <li class="page-number pgCurrent">{$val}</li>
  	  {else}
  	  <li class="page-number"><a href="#" page="{$val}">{$val}</a></li>
  	  {/if}
  	{/foreach}

    {if $pager->getPage() < $pager->getPages()}
      <li><a href="#" page="{$pager->next()}">Next</a></li>
    {/if}
	</ul>
</div>
{/if}
{else}
<p>Displaying <span class="perpage">0</span> of <span class="totalpages">0</span> Results</p>
{/if}